<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>
<!-- Mapping List -->
<div class="container-fluid">
	<div class="row">
		<div class="col-md-1"><span id="appId" class="hidden">${appId}</span></div>
		<div class="col-md-9">
			<button type="button" class="btn btn-primary" id="indexAddDriverBtn">
				<span class="fa fa-plus"></span>添加驱动
			</button>
		</div>
		<div class="col-md-1">
			<button id="backIndexBtn" type="button" style="display:none;" onclick="window.history.back();" class="btn btn-default pull-right">
				<span class="fa fa-reply"></span>返回
			</button>
		</div>
		<div class="col-md-1"></div>
	</div>
	<br />

	<!-- 显示驱动列表 -->
	<div id="dirverListPanel">
		<div class="row">
			<div class="col-md-1"></div>
			<!-- 驱动列表展示 -->
			<div class="col-md-5">
				<div class="panel panel-default">
					<div class="panel-body" id="dirverList"></div>
				</div>
			</div>

			<!-- 驱动列表详细信息展示 -->
			<div class="col-md-5">
				<div class="panel panel-default">
					<div class="panel-body">
						<h4>仪表盘</h4>
						<div class="row">
							<div class="col-md-3">DB：<span id="dataBaseCount" class="text-primary"></span></div>
							<div class="col-md-3">Ldap：<span id="ldapCount" class="text-primary"></span></div>
							<div class="col-md-3">Redis：<span id="redisCount" class="text-primary"></span></div>
							<div class="col-md-3">Webservice：<span id="webServiceCount" class="text-primary"></span></div>
						</div>
						<br/>
						<div class="row">
							<div class="col-md-12">
								<table class="table table-bordered">
									<thead>
										<tr class="success">
											<th>详情</th>
										</tr>
									</thead>
									<tbody id="driverListDetails"></tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
			
			<div class="col-md-1"></div>
		</div>
	</div>

</div>
<script type="text/javascript">
	// 如果是用iframe访问
	if (top != window) {
		document.getElementById('backIndexBtn').style.display = 'block';
	}
	//加载首页JS
	$.getScript($basePath + '/style/js/index/index.js');
</script>